9047d84feb02b9c58b3eb90ea634d432a656fdcf,src/main/java/com/conveyal/r5/util/ExpandingMMFBytez.java,ExpandingMMFBytez,free,#,116

Before Change


    /** This implementation hides the inappropriate method on the malloc-based superclass. */
    public void free() {
        try {
            munmap(baseAdress, length);
            fileChannel.close();
        } catch (Exception ex) {
            throw new RuntimeException(ex);

After Change


    /** This implementation hides the inappropriate method on the malloc-based superclass. */
    public void free() {
        try {
            if (this.baseAdress != 0L) {
                munmap(baseAdress, length);
                this.baseAdress = 0L;
            }
            fileChannel.close();